package com.bootdo.repertory.service.impl;

import com.bootdo.repertory.dao.PorderDao;
import com.bootdo.repertory.domain.PorderDO;
import com.bootdo.repertory.service.PorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class PorderServiceImpl implements PorderService {
	@Autowired
	private PorderDao porderDao;
	
	@Override
	public PorderDO get(Integer id){
		return porderDao.get(id);
	}
	
	@Override
	public List<PorderDO> list(Map<String, Object> map){
		return porderDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return porderDao.count(map);
	}
	
	@Override
	public int save(PorderDO porder){
		return porderDao.save(porder);
	}
	
	@Override
	public int update(PorderDO porder){
		return porderDao.update(porder);
	}
	
	@Override
	public int remove(Long id){
		return porderDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return porderDao.batchRemove(ids);
	}

	@Override
	public PorderDO getInfo(PorderDO porderDO) {
		return porderDao.getInfo(porderDO);
	}

}
